//
//  YFMenuModel.m
//  SquashSpark
//
//  Created by Coollang on 2017/10/26.
//  Copyright © 2017年 Coollang-YF. All rights reserved.
//

#import "YFMenuModel.h"

@implementation YFMenuModel

+ (instancetype)menuModelWithSelectImageName:(NSString *)imageName unSelectImageName:(NSString *)unSelectImageName moduleName:(NSString *)module moduleType:(kMenuModuleType)modlueType{
    YFMenuModel *model = [YFMenuModel new];
    model.selectImageName = imageName;
    model.unSelectimageName = unSelectImageName;
    model.moduleName = module;
    model.menuModuleType = modlueType;
    return model;
}

+ (instancetype)menuModelWithSelectImageName:(NSString *)imageName moduleName:(NSString *)module moduleType:(kMenuModuleType)modlueType {
    NSString *unselectImageName = [imageName stringByReplacingOccurrencesOfString:@"_select" withString:@"_unselect"];
    return [self menuModelWithSelectImageName:imageName unSelectImageName:unselectImageName moduleName:module moduleType:modlueType];
}

+ (NSArray *)getMenuModels {
    
    YFMenuModel *sensor = [self menuModelWithSelectImageName:@"menu_sensor_select" moduleName:@"My Spark" moduleType:kModuleSensor];
    YFMenuModel *sports = [self menuModelWithSelectImageName:@"menu_myresults_select" moduleName:@"Training" moduleType:kModuleTraining];
    YFMenuModel *videos = [self menuModelWithSelectImageName:@"menu_videos_select" moduleName:@"Videos" moduleType:kModuleVideos];
    YFMenuModel *feeds = [self menuModelWithSelectImageName:@"menu_feeds_select" moduleName:@"Feeds" moduleType:kModuleFeeds];
    YFMenuModel *club = [self menuModelWithSelectImageName:@"menu_club_select" moduleName:@"Club" moduleType:kModuleClub];
    YFMenuModel *notice = [self menuModelWithSelectImageName:@"menu_notice_select" moduleName:@"Notice" moduleType:kModuleNotice];
    YFMenuModel *setUp = [self menuModelWithSelectImageName:@"menu_setup_select" moduleName:@"Settings" moduleType:kMoudleSettting];
    return @[sensor,sports,videos,feeds,club,setUp];
//    return @[sensor,sports,videos,feeds,club,notice,setUp];
}

@end
